import axios from '~/plugins/axios';



/***
获取资讯列表
 * 
 * 
 */
export const formManList = function({commit, state}, preload) { 
     return axios.get(process.env.baseUrl + '/admin/shop/information', {
        params: preload || {}
    })
};
/***
获取帮助中心列表
 * 
 * 
 */
export const HelpList = function({commit, state}, preload) { 
     return axios.get(process.env.baseUrl + "/b2c/helpcenter/search.do", {
        params: preload || {}
    })
};


/***
增加资讯列表
 * 
 * 
 */
export const addManlist = function({commit, state}, preload) { 
     return axios.post(process.env.baseUrl + '/admin/shop/information/add', preload)
};



/***
增加帮助中心添加咨询
 * 
 * 
 */
export const addHelp = function({commit, state}, preload) { 
     return axios.post(process.env.baseUrl + "/b2c/helpcenter/save.do", preload)
};

export const addHelpImg = function({commit, state}, preload) { 
     return axios.post(process.env.baseUrl + "/b2c/photo/upload.do", preload)
};

/***
gengxin 资讯列表
 * 
 * 
 */
export const upManlist = function({commit, state}, preload) { 
     return axios.post(process.env.baseUrl + "/admin/shop/information/update", preload)
};

/***
删除资讯列表
 * 
 * 
 */
export const deleteFormManlist = function({commit, state}, preload) { 
     return axios.post(process.env.baseUrl + '/admin/shop/information/delete', preload)
};

/***
删除帮助中心列表
 * 
 * 
 */
export const deletehelplist = function({commit, state}, preload) { 
     return axios.post(process.env.baseUrl + "/b2c/helpcenter/delete.do", preload)
};
/***

 * 
 * 
 */
export const formmanDetail = function({commit, state}, preload) { 
     return axios.get(process.env.baseUrl + "/b2c/helpcenter/detail.do", {
        params: preload || {}
    })
};
/***
获取资讯详情
 * 
 * 
 */
export const formmanDetailList = function({commit, state}, preload) { 
     return axios.get(process.env.baseUrl + "/admin/shop/information/detail", {
        params: preload || {}
    })
};
